import { createSlice } from "@reduxjs/toolkit";

const Store = createSlice({
    name:'Index',
    initialState: {
        token:'',
        page:1,
        size:10,
        list:[],
        total:0
    },
    reducers:{
        setToken:(state,action)=>{
            state.token = action.payload
        },
        setPage:(state,action)=>{
            state.page = action.payload
        },
        setSize:(state,action)=>{
            state.size = action.payload
        }
    },
    
})

export default Store